package com.ax.associator.shopassistant.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

public class BasePersonnel {
    /**
     * 人员ID
     */
    private Long personnelId;

    /**
     * 人员姓名
     */
    private String personnelName;

    /**
     * 所属药店/公司ID
     */
    private Long drugstoreId;

    /**
     * 所属药店/公司名称
     */
    private String drugstoreName;

    /**
     * 人员类型代码（1：公司，2：药店）
     */
    private String typeCode;

    /**
     * 人员类型名称
     */
    private String typeName;

    /**
     * 身份证号
     */
    private String personId;
    /**
     * 年龄
     */
    private Integer age;

    public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	/**
     * 员工号
     */
    private String empno;

    /**
     * 性别
     */
    private String sex;

    /**
     * 生日
     */
    private Date birth;

    /**
     * 入职时间
     */
    private Date entryTime;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 住址
     */
    private String address;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 修改时间
     */
    private Date updateDate;

    /**
     * 状态(1：有效；0：注销)
     */
    private Integer flag;
    
    //联表查询数据(药店)
    private String areaName;
    private String drugAddress;
    private String headImgUrl;
    private String attachmentURLs;



    public String getAttachmentURLs() {
	return attachmentURLs;
}

public void setAttachmentURLs(String attachmentURLs) {
	this.attachmentURLs = attachmentURLs;
}

	//接收参数（头像地址）
    String headUrl;


    public String getHeadUrl() {
        return headUrl;
    }

    public void setHeadUrl(String headUrl) {
        this.headUrl = headUrl;
    }


    public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	public String getDrugAddress() {
		return drugAddress;
	}

	public void setDrugAddress(String drugAddress) {
		this.drugAddress = drugAddress;
	}

	public BasePersonnel(Long personnelId, String personnelName, Long drugstoreId, String drugstoreName, String typeCode, String typeName, String personId, String empno, String sex, Date birth, Date entryTime, String phone, String address, String remarks, Date createDate, Date updateDate, Integer flag) {
        this.personnelId = personnelId;
        this.personnelName = personnelName;
        this.drugstoreId = drugstoreId;
        this.drugstoreName = drugstoreName;
        this.typeCode = typeCode;
        this.typeName = typeName;
        this.personId = personId;
        this.empno = empno;
        this.sex = sex;
        this.birth = birth;
        this.entryTime = entryTime;
        this.phone = phone;
        this.address = address;
        this.remarks = remarks;
        this.createDate = createDate;
        this.updateDate = updateDate;
        this.flag = flag;
    }

    public BasePersonnel() {
        super();
    }

    public Long getPersonnelId() {
        return personnelId;
    }

    public void setPersonnelId(Long personnelId) {
        this.personnelId = personnelId;
    }

    public String getPersonnelName() {
        return personnelName;
    }

    public void setPersonnelName(String personnelName) {
        this.personnelName = personnelName == null ? null : personnelName.trim();
    }

    public Long getDrugstoreId() {
        return drugstoreId;
    }

    public void setDrugstoreId(Long drugstoreId) {
        this.drugstoreId = drugstoreId;
    }

    public String getDrugstoreName() {
        return drugstoreName;
    }

    public void setDrugstoreName(String drugstoreName) {
        this.drugstoreName = drugstoreName == null ? null : drugstoreName.trim();
    }

    public String getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode == null ? null : typeCode.trim();
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName == null ? null : typeName.trim();
    }

    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId == null ? null : personId.trim();
    }

    public String getEmpno() {
        return empno;
    }

    public void setEmpno(String empno) {
        this.empno = empno == null ? null : empno.trim();
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public Date getEntryTime() {
        return entryTime;
    }

    public void setEntryTime(Date entryTime) {
        this.entryTime = entryTime;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
    }

    public String getHeadImgUrl() {
        return headImgUrl;
    }

    public void setHeadImgUrl(String headImgUrl) {
        this.headImgUrl = headImgUrl;
    }
}